3.1334 \(\int \frac{A+B x}{a+c x^2} \, dx\)

Optimal. Leaf size=42 \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{c}}+\frac{B \log \left (a+c x^2\right )}{2 c} \]

[Out]

(A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[c]) + (B*Log[a + c*x^2])/(2*c)

_______________________________________________________________________________________

Rubi [A]  time = 0.0379154, antiderivative size = 42, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2 \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{c}}+\frac{B \log \left (a+c x^2\right )}{2 c} \]

Antiderivative was successfully verified.

[In]  Int[(A + B*x)/(a + c*x^2),x]

[Out]

(A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[c]) + (B*Log[a + c*x^2])/(2*c)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 6.86558, size = 37, normalized size = 0.88 \[ \frac{A \operatorname{atan}{\left (\frac{\sqrt{c} x}{\sqrt{a}} \right )}}{\sqrt{a} \sqrt{c}} + \frac{B \log{\left (a + c x^{2} \right )}}{2 c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((B*x+A)/(c*x**2+a),x)

[Out]

A*atan(sqrt(c)*x/sqrt(a))/(sqrt(a)*sqrt(c)) + B*log(a + c*x**2)/(2*c)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0221313, size = 42, normalized size = 1. \[ \frac{A \tan ^{-1}\left (\frac{\sqrt{c} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{c}}+\frac{B \log \left (a+c x^2\right )}{2 c} \]

Antiderivative was successfully verified.

[In]  Integrate[(A + B*x)/(a + c*x^2),x]

[Out]

(A*ArcTan[(Sqrt[c]*x)/Sqrt[a]])/(Sqrt[a]*Sqrt[c]) + (B*Log[a + c*x^2])/(2*c)

_______________________________________________________________________________________

Maple [A]  time = 0.003, size = 32, normalized size = 0.8 \[{\frac{B\ln \left ( c{x}^{2}+a \right ) }{2\,c}}+{A\arctan \left ({cx{\frac{1}{\sqrt{ac}}}} \right ){\frac{1}{\sqrt{ac}}}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((B*x+A)/(c*x^2+a),x)

[Out]

1/2*B*ln(c*x^2+a)/c+A/(a*c)^(1/2)*arctan(c*x/(a*c)^(1/2))

_______________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/(c*x^2 + a),x, algorithm="maxima")

[Out]

Exception raised: ValueError

_______________________________________________________________________________________

Fricas [A]  time = 0.303621, size = 1, normalized size = 0.02 \[ \left [\frac{A c \log \left (\frac{2 \, a c x +{\left (c x^{2} - a\right )} \sqrt{-a c}}{c x^{2} + a}\right ) + \sqrt{-a c} B \log \left (c x^{2} + a\right )}{2 \, \sqrt{-a c} c}, \frac{2 \, A c \arctan \left (\frac{\sqrt{a c} x}{a}\right ) + \sqrt{a c} B \log \left (c x^{2} + a\right )}{2 \, \sqrt{a c} c}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/(c*x^2 + a),x, algorithm="fricas")

[Out]

[1/2*(A*c*log((2*a*c*x + (c*x^2 - a)*sqrt(-a*c))/(c*x^2 + a)) + sqrt(-a*c)*B*log
(c*x^2 + a))/(sqrt(-a*c)*c), 1/2*(2*A*c*arctan(sqrt(a*c)*x/a) + sqrt(a*c)*B*log(
c*x^2 + a))/(sqrt(a*c)*c)]

_______________________________________________________________________________________

Sympy [A]  time = 0.732582, size = 124, normalized size = 2.95 \[ \left (- \frac{A \sqrt{- a c^{3}}}{2 a c^{2}} + \frac{B}{2 c}\right ) \log{\left (x + \frac{- B a + 2 a c \left (- \frac{A \sqrt{- a c^{3}}}{2 a c^{2}} + \frac{B}{2 c}\right )}{A c} \right )} + \left (\frac{A \sqrt{- a c^{3}}}{2 a c^{2}} + \frac{B}{2 c}\right ) \log{\left (x + \frac{- B a + 2 a c \left (\frac{A \sqrt{- a c^{3}}}{2 a c^{2}} + \frac{B}{2 c}\right )}{A c} \right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x+A)/(c*x**2+a),x)

[Out]

(-A*sqrt(-a*c**3)/(2*a*c**2) + B/(2*c))*log(x + (-B*a + 2*a*c*(-A*sqrt(-a*c**3)/
(2*a*c**2) + B/(2*c)))/(A*c)) + (A*sqrt(-a*c**3)/(2*a*c**2) + B/(2*c))*log(x + (
-B*a + 2*a*c*(A*sqrt(-a*c**3)/(2*a*c**2) + B/(2*c)))/(A*c))

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.281426, size = 42, normalized size = 1. \[ \frac{A \arctan \left (\frac{c x}{\sqrt{a c}}\right )}{\sqrt{a c}} + \frac{B{\rm ln}\left (c x^{2} + a\right )}{2 \, c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((B*x + A)/(c*x^2 + a),x, algorithm="giac")

[Out]

A*arctan(c*x/sqrt(a*c))/sqrt(a*c) + 1/2*B*ln(c*x^2 + a)/c